package com.ostms.adv.model;

import java.io.Serializable;

/**
 * Created by sun on 2018/5/10.
 */

public class AdvInfo implements Serializable {
    private String advCode;
    private String advName;
    private String advType;
    private String cid;
    private String id;
    private String url;
    private String voice;
    private String path;
    private String voicePath;
    private String winNoticeUrl;
    private String thirdMonitorUrl;
    private String conCode;
    private String sex;
    private Integer launchDate;
    private Integer endDate;
    private Integer minAge;
    private Integer maxAge;
    //判断是否来自本地drawable
    private boolean isDrawable;
    private String drawablePath;
    private String triggerTime;
    private String code;
    private int playTime;
    private String platform_type;
    private String conType;
    private String priceType;
    private String playPriceStr;

    public String getPlayPriceStr() {
        return playPriceStr;
    }

    public void setPlayPriceStr(String playPriceStr) {
        this.playPriceStr = playPriceStr;
    }

    public String getConType() {
        return conType;
    }

    public void setConType(String conType) {
        this.conType = conType;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }


    public String getPlatform_type() {
        return platform_type;
    }

    public void setPlatform_type(String platform_type) {
        this.platform_type = platform_type;
    }

    /**
     * 广告类型,视频/图片 1.视频 2.待机广告 3.ssp视频 4.s图片1080*img_1440 5.图片1080×832
     */
    //6.480固定广告 7.320固定广告
    public static final String ADV_TYPE_OSTMS_STADBY = "2";
    public static final String ADV_TYPE_OSTMS_VIDEO = "1";
    public static final String ADV_TYPE_VIDEO = "3";
    public static final String ADV_TYPE_IMAGE_1440 = "4";
    public static final String ADV_TYPE_IMAGE_832 = "5";
    public static final String ADV_TYPE_BOTTOM_480 = "6";
    public static final String ADV_TYPE_BOTTOM_320 = "7";

    public int getPlayTime() {
        return playTime;
    }

    public void setPlayTime(int playTime) {
        this.playTime = playTime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTriggerTime() {
        return triggerTime;
    }

    public void setTriggerTime(String triggerTime) {
        this.triggerTime = triggerTime;
    }

    public boolean isDrawable() {
        return isDrawable;
    }

    public void setDrawable(boolean drawable) {
        isDrawable = drawable;
    }

    public String getDrawablePath() {
        return drawablePath;
    }

    public void setDrawablePath(String drawablePath) {
        this.drawablePath = drawablePath;
    }

    public boolean isVideo() {
        return advType.equals(ADV_TYPE_VIDEO) || advType.equals(ADV_TYPE_OSTMS_VIDEO);
    }

    public String getConCode() {
        return conCode;
    }

    public void setConCode(String conCode) {
        this.conCode = conCode;
    }

    public String getWinNoticeUrl() {
        return winNoticeUrl;
    }

    public void setWinNoticeUrl(String winNoticeUrl) {
        this.winNoticeUrl = winNoticeUrl;
    }

    public String getThirdMonitorUrl() {
        return thirdMonitorUrl;
    }

    public void setThirdMonitorUrl(String thirdMonitorUrl) {
        this.thirdMonitorUrl = thirdMonitorUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getLaunchDate() {
        return launchDate;
    }

    public void setLaunchDate(Integer launchDate) {
        this.launchDate = launchDate;
    }

    public Integer getEndDate() {
        return endDate;
    }

    public void setEndDate(Integer endDate) {
        this.endDate = endDate;
    }

    public Integer getMinAge() {
        return minAge;
    }

    public void setMinAge(Integer minAge) {
        this.minAge = minAge;
    }

    public Integer getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(Integer maxAge) {
        this.maxAge = maxAge;
    }

    public String getAdvCode() {
        return advCode;
    }

    public void setAdvCode(String advCode) {
        this.advCode = advCode;
    }

    public String getAdvName() {
        return advName;
    }

    public void setAdvName(String advName) {
        this.advName = advName;
    }

    public String getAdvType() {
        return advType;
    }

    public void setAdvType(String advType) {
        this.advType = advType;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getVoice() {
        return voice;
    }

    public void setVoice(String voice) {
        this.voice = voice;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getVoicePath() {
        return voicePath;
    }

    public void setVoicePath(String voicePath) {
        this.voicePath = voicePath;
    }


    @Override
    public String toString() {
        return "AdvInfo{" +
                "advCode='" + advCode + '\'' +
                ", advName='" + advName + '\'' +
                ", advType='" + advType + '\'' +
                ", cid='" + cid + '\'' +
                ", id='" + id + '\'' +
                ", url='" + url + '\'' +
                ", voice='" + voice + '\'' +
                ", path='" + path + '\'' +
                ", voicePath='" + voicePath + '\'' +
                ", winNoticeUrl='" + winNoticeUrl + '\'' +
                ", thirdMonitorUrl='" + thirdMonitorUrl + '\'' +
                ", conCode='" + conCode + '\'' +
                ", sex='" + sex + '\'' +
                ", launchDate=" + launchDate +
                ", endDate=" + endDate +
                ", minAge=" + minAge +
                ", maxAge=" + maxAge +
                ", isDrawable=" + isDrawable +
                ", drawablePath='" + drawablePath + '\'' +
                ", triggerTime='" + triggerTime + '\'' +
                ", code='" + code + '\'' +
                ", playTime=" + playTime +
                ", platform_type='" + platform_type + '\'' +
                ", conType='" + conType + '\'' +
                ", priceType='" + priceType + '\'' +
                ", playPriceStr='" + playPriceStr + '\'' +
                '}';
    }
}
